package org.jeecg.modules.app.api;
import org.jeecg.modules.app.api.fallback.AppFallback;
import org.jeecg.modules.app.entity.AppClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "jeecg-app", fallbackFactory = AppFallback.class)
public interface AppApi {

    @GetMapping(value = "/app/api/queryByAppId")
    AppClient queryByAppId(@RequestParam("appId") String appId);

    @GetMapping(value = "/app/api/menusList")
    List<String> menusList(@RequestParam("appId") String appId);

}
